<%@ page contentType="text/html;charset=UTF-8" %>
<html>
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge; charset=UTF-8">
        <title><g:layoutTitle default="後台管理"/></title>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
        <!-- Bootstrap V3 -->
        <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
        <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
        <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
        <!-- Bootstrap V2 -->
        <!--<link rel="stylesheet" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">-->
        <!--<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>-->
        <!-- Grails -->
        <link rel="stylesheet" href="${resource(dir: 'css', file: 'mars.css')}" type="text/css">
        <!-- ckeditor -->
        <g:layoutHead/>
    </head>
    <body>
        <div class="container">
            <div class="row">
                <div class="col-md-8">
                    <img src="http://placehold.it/360x56"/>
                </div>
                <div class="col-md-4">
                    <ol class="breadcrumb">
                        <li><g:link controller="front" action="index">前台</g:link></li>
                        <g:if test="${session.accountIdaaa}"><li><a href="#">${account.name}</a></li></g:if>
                        <g:if test="${session.accountId}"><li><g:link controller="login" action="logout">登出</g:link></li></g:if>
                            </ol>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <img src="http://placehold.it/1140x1" />
                        </div>
                    </div>
                    <!-- Navi Bar -->
            <div class="row">
                <div class="col-md-12">
                    <nav class="navbar navbar-default" role="navigation">
                        <!-- Brand and toggle get grouped for better mobile display -->
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                                <span class="sr-only">Toggle navigation</span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                            <a class="navbar-brand" href="#"><span class="glyphicon glyphicon-leaf"></span></a>
                        </div>                        
                        <!-- Collect the nav links, forms, and other content for toggling -->
                        <div class="collapse navbar-collapse">
                            <ul class="nav navbar-nav">
                                <li class="dropdown <%//= 'active' if params[:action] == 'type' %>">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">活動管理<b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="${createLink(controller:'serial',action:'list')}">活動管理</a></li>
                                    <li><a href="${createLink(controller:'event',action:'list')}">場次管理</a></li>
                                </ul>
                                </li>
                                <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">通知信管理<b class="caret"/></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="${createLink(controller:'inform',action:'list')}">通知信管理</a></li>
                                    <li><a href="${createLink(controller:'manual',action:'list')}">手動通知管理</a></li>
                                </ul>
                                </li>
                                <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">報名管理<b class="caret"/></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="${createLink(controller:'register',action:'newEvents')}">未辦報名管理</a></li>
                                    <li><a href="${createLink(controller:'register',action:'oldEvents')}">已辦報名管理</a></li>
                                    <!--<li><a href="${createLink(controller:'register',action:'list')}">報名名單匯出</a></li>-->
                                </ul>
                                </li>
                                <li><a href="${createLink(controller:'billboard',action:'list')}">最新消息管理</a></li>
                                <li class="dropdown <%//= 'active' if params[:action] == 'month' %>">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">權限管理<b class="caret"/></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="${createLink(controller:'account',action:'list')}">帳戶管理</a></li>
                                    <li><a href="${createLink(controller:'team',action:'list')}">群組管理</a></li>
                                    <li><a href="${createLink(controller:'power',action:'list')}">權限管理</a></li>
                                </ul>
                                </li>
                                <li class="dropdown <%//= 'active' if params[:action] == 'month' %>">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">代碼管理<b class="caret"/></b></a>
                                <ul class="dropdown-menu">
                                    <!--<li><a href="${createLink(controller:'status',action:'list')}">活動狀態</a></li>-->
                                    <li><a href="${createLink(controller:'kind',action:'list')}">場次類型</a></li>
                                    <li><a href="${createLink(controller:'place',action:'list')}">場次地點</a></li>
                                </ul>
                                </li>
                            </ul><!--nav navbar-nav-->
                            <ul class="nav navbar-nav navbar-right">
                                <li><a href="javascript: history.back()">回上頁</a></li>
                            </ul>
                        </div>
                    </nav><!-- /.navbar-collapse -->
                </div>
            </div>
            <g:layoutBody/>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-md-12enroll">
                    <hr/>
                    <div align="center">
                        All rights reserved © 2014 國立公共資訊圖書館<br/>
                        本站最佳瀏覽解析度：1024x768，建議採用Chrome、Firefox瀏覽器
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
